package com.wg.dome.entity.config;

import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;
import com.wg.db.schema.AccessLevel;

import java.io.Serializable;

/**
 * 道具表
 */
@EntityTable(tableName = "static_init_item",accessLevel = AccessLevel.ReadOnly)
public class InitItemEntity implements Serializable {

    @EntityField(isKey = true)
    private int id;

    /**
     * 名称
     */
    @EntityField
    private String name;

    /**
     * 品质 1:绿色 2:蓝色 3:紫色 4:红色 5:橙色
     */
    @EntityField
    private byte quality;

    /**
     * 是否能卖出
     */
    @EntityField(fieldName = "is_sale")
    private boolean isSale;

    /**
     * 是否能使用
     */
    @EntityField(fieldName = "is_use")
    private boolean isUse;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte getQuality() {
        return quality;
    }

    public void setQuality(byte quality) {
        this.quality = quality;
    }

    public boolean isSale() {
        return isSale;
    }

    public void setSale(boolean sale) {
        isSale = sale;
    }

    public boolean isUse() {
        return isUse;
    }

    public void setUse(boolean use) {
        isUse = use;
    }
}
